package com.niuyubo;

import com.niuyubo.Bird;

public class Eagle extends Bird {

    public Eagle() {
        //省略super.Bird()
//        this.eat();
//        super.fly();
        this("aaa");
        System.out.println("Eagle的构造方法");
    }

    public Eagle(String name) {
        //省略super.Bird()
        System.out.println("Eagle带有name的构造方法");
    }

    @Override
    public void eat() {
        System.out.println("Eagles are eating.");
    }
}
